﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using MockPrjTeam2.DAO;

namespace MockPrjTeam2.Biz
{
    public class PremisesBiz
    {
        public static PremisesDao db = new PremisesDao();
        public static List<Entity.PremiseInfor> Sp_Premises_GetAll()
        {
            return db.GetAll();
        }
        public static List<Entity.PremiseInfor> StartWith(string FirtName)
        {
            return db.GetByNameStartWith(FirtName);
        }
        public static bool Premises_insert(Entity.PremiseInfor data)
        {
            return db.Insert(data);
        }
        public static bool Premises_update(Entity.PremiseInfor data)
        {
            return db.Update(data);
        }
        public static bool Premises_delete(string PremiseID)
        {
            return db.Delete(PremiseID);
        }
        public static List<Entity.PremiseInfor> Premises_Getby_Id(string PrID)
        {
            return db.GetById(PrID);
        }
        public static List<Entity.PremiseInfor> Sp_Premises_GetName(string Name)
        {
            return db.GetByName(Name);
        }
    }
}